import  os

file="/a/b/d/c.zip"

filepath,ext=os.path.splitext(file)
print(filepath+".pdf")
print(ext)